package com.emep.changzhi.analyse.entity.datamonitor;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author yangj
 * @version V1.0
 * @Description: 掉线记录
 * @date 2018/2/26  16:49
 */
@Data
@Entity
@Table(name = "data_dropped_record")
public class DataDroppedRecord2 implements Serializable{

    private static final long serialVersionUID = 2018289472770876892L;

    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String  id;

    @Column(name = "mn",columnDefinition="varchar(100) COMMENT '设备mn号'" )
    private String  mn;

    @Column(name = "run_status",columnDefinition="varchar(100) COMMENT '设备状态'" )
    private String  runStatus;

    @Column(name = "start_time",columnDefinition="varchar(100) COMMENT '时间'" )
    @OrderBy("startTime DESC")
    private String  startTime;

}
